package com.xxb.cassandra.repository;

import com.xxb.cassandra.entity.Person;
import org.springframework.data.cassandra.repository.AllowFiltering;
import org.springframework.data.cassandra.repository.CassandraRepository;

/**
 * @author xixianbin
 * @version 1.0
 * @date 2021/7/29 10:13 下午
 */

public interface PersonRepository extends CassandraRepository<Person, Integer> {

    /**
     * 根据名字查询
     *
     * @param name 名字
     * @return Person
     */
    @AllowFiltering
    Person findByName(String name);
}

